﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Authority.Services;
using Authority.Services.Impl;
using Authority.Entity;
using Authority.Repositories.Impl;
using DoNet.Common.IoC;
using Microsoft.Practices.Unity;

namespace Hosting.Authority
{
    public class ModuleWcfService : Hosting.BaseWcfService<IModulesService>, IModuleWcfService
    {
        //protected IModulesService _service;

        //public ModuleWcfService()
        //{
        //    DoNet.FrameWork.Repository.IUnitOfWork unitofwork = new DoNet.FrameWork.Repository.Impl.MISEntities();
        //    _service = new ModulesServiceImpl(unitofwork, new ModulesRepositoryImpl(unitofwork),
        //        new ControlsRepositoryImpl(unitofwork));
        //}

        public int NewSave(Modules modules)
        {
            return _service.NewSave(modules);
        }

        public string GetALLControls()
        {
            return _service.GetALLControls();
        }
    }
}
